package com.photoeditor.demo.util.store;

/**

 */
public class StoreConstant {

    /**
     * ############### request code #################
     */

    //启动详情页面
    public static final int REQUEST_CODE_START_DETAIL = 1002;

    //启动我的滤镜界面
    public static final int REQUEST_CODE_START_MY_FILTER = 3001;

    //启动我的滤镜界面
    public static final int REQUEST_CODE_START_MORE_STORE = 3002;

    /**
     * ################# result code #################
     */
    //点击应用的ResultCode
    public static final int RESULT_CODE_APPLIED = 123;


    /**
     * ################# Extra info #################
     */
    //是否是从编辑界面进入
    public static final String EXTRA_START_FROM_EDIT = "extra_start_from_edit";

    //进入时的页面
    public static final String EXTRA_FIRST_PAGE = "extra_first_page";

    //删除的pip和Filter列表
    public static final String EXTRA_DELETE_PIP_LIST = "extra_delete_pip_list";
    public static final String EXTRA_DELETE_FILTER_LIST = "extra_delete_filter_list";

    //退出时应用的类型  类型见下面的类型
    public static final String EXTRA_APPLY_TYPE = "extra_return_type";

    //包名的字段
    public static final String EXTRA_PACKAGE_NAME = "extra_package_name";

    //滤镜名称
    public static final String EXTRA_NAME = "extra_name";

    //进入滤镜商店方式，主要是区分是否从wecloud推送消息进入
    public static final String EXTRA_IS_WECLOUD_ENTER = "extra_is_wecloud_enter";

    //进入滤镜商店方式，从积分墙进来
    public static final String EXTRA_IS_TOKEN_COIN_ENTER = "extra_is_token_coin_enter";

    //mapid
    public static final String EXTRA_MAP_ID = "extra_map_id";

    //进入滤镜详情页面的信息
    public static final String EXTRA_CONTENT_INFO = "extra_contentInfoBO";

    //主要是根据mapid获取详情信息，区分滤镜和pip
    public static final String EXTRA_TYPE_IS_PIP = "extra_type_is_pip";

    //进入滤镜详情页面的类型
    public static final String EXTRA_RES_TYPE = "extra_res_type";


    //修改统计  规范跳转参数相关 start################################

    public static final class store {
        public static final String EXTRA_STORE_ENTRANCE = "extra_store_entrance";//进入商店的入口

        public static final class storeEntrance {
            public final static int ENTRANCE_NO = -1;//未进入商店直接进入其他界面的时候
            public final static int ENTRANCE_OTHER = 0;//其他情况进入商店
            public final static int ENTRANCE_HOMEPAGE = 1;//主页界面
            public final static int ENTRANCE_MAIN_FILTER = 2;//实时滤镜加号
            public final static int ENTRANCE_EDIT_FILTER = 3;//编辑滤镜加号
            public final static int ENTRANCE_MAIN_STICKER = 4;//实时贴纸加号
            public final static int ENTRANCE_EDIT_STICKER = 5;//编辑贴纸加号
            public final static int ENTRANCE_MAIN_PIP = 6;//实时PIP加号
            public final static int ENTRANCE_EDIT_PIP = 7;//编辑PIP加号  包含模板前景背景
            public final static int ENTRANCE_PIP = 8;//PIP编辑加号  包含模板前景背景
            public final static int ENTRANCE_PUSH = 9;//通知栏推送
            public final static int ENTRANCE_COLLAGE_FILTER = 10;//拼图内滤镜编辑加号
            public final static int ENTRANCE_SETTING = 11;//设置项进入主题tab
            public final static int ENTRANCE_RANDOM_FILTER = 12;//随机滤镜5次
            public final static int ENTRANCE_FIRST_GUIDE = 13;//主页引导
            public final static int ENTRANCE_DAILY_RECOMMEND = 14;//每日推荐
            public final static int ENTRANCE_MAIN_BANNER = 15;//主页banner
            public final static int ENTRANCE_COMMUNCITY = 16;//社区
            public final static int ENTRANCE_ERROR_IN = 17;//错误的情况下进入商店
            public final static int ENTRANCE_NEW_PUSH = 18;//新的通知栏推送 和 老版本的区别是影响应用资源和返回
            public final static int ENTRANCE_STASH_STICKER = 19;//暂存贴纸加号
            public final static int ENTRANCE_STASH_FILTER = 20;//暂存滤镜加号
            public final static int ENTRANCE_COLLAGE_STICKER = 21;//拼图贴纸加号
            public final static int ENTRANCE_HOME_TEMPLATE = 22;//主界面模板more
            public final static int ENTRANCE_TEMPLAGE = 23;//模板页面更多

            public static boolean isEditStoreEntrance(int entrance) {
                return (entrance == ENTRANCE_EDIT_FILTER || entrance == ENTRANCE_EDIT_STICKER || entrance == ENTRANCE_EDIT_PIP);
            }

            public static boolean isMainStickerStoreEntrance(int entrance) {
                return (entrance == ENTRANCE_MAIN_STICKER);
            }

            /**
             * 老的推送
             *
             * @param entrance
             * @return
             */
            public static boolean isOldPushStoreEntrance(int entrance) {
                return (entrance == ENTRANCE_PUSH);
            }

            public static boolean isDailyRecomendStoreEntrance(int entrance) {
                return (entrance == ENTRANCE_DAILY_RECOMMEND);
            }

            public static boolean isErrorInStoreEntrance(int entrance) {
                return (entrance == ENTRANCE_ERROR_IN);
            }
        }
    }


    //修改统计  规范跳转参数相关 end################################


    /**
     * 类型
     */
    public static final int EXTRA_TYPE_DEFAULT = -1;
    public static final int EXTRA_TYPE_FILTER = 0;
    public static final int EXTRA_TYPE_STICKER = 2;
    public static final int EXTRA_TYPE_THEME = 3;
    public static final int EXTRA_TYPE_PIP = 4;


    /**
     * ################# 模块相关 #################
     */
    public final static int INVALID_MODULE_ID = -1;

    public static final int PAGE_FEATURED = 0;

    public static final int PAGE_STICKER = 1;

    public static final int PAGE_FILTER = 2;

    public static final int PAGE_THEME = 3;

    public static final int PAGE_PIP = 4;

    public static final int PAGE_BACKGROUND = 5;

    public static final int PAGE_TEMPLATE = 6;

    public static final int PAGE_MORE = 10;

}
